package com.spzx.cart.api;

import com.spzx.cart.api.fallback.RemoteDeleteCartCheckedListFallbackFactory;
import com.spzx.cart.api.fallback.RemoteUpdateCartPriceFallbackFactory;
import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.constant.ServiceNameConstants;
import com.spzx.common.core.domain.R;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * ClassName: RemoteUpdateCartPrice
 * Description:
 *
 * @Author linz
 * @Creat 2025/3/21 15:24
 * @Version 1.00
 */
@FeignClient(
        value = ServiceNameConstants.CART_SERVICE,
        fallbackFactory = RemoteUpdateCartPriceFallbackFactory.class)
public interface RemoteUpdateCartPrice {
    @Operation(summary = "更新用户购物车列表价格")
    @GetMapping("/updateCartPrice")
    R<Boolean> updateCartPrice(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
